package com.ruoyi.prevention.segregater.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 隔离人员信息对象 sys_segregater
 * 
 * @author wad
 * @date 2022-04-06
 */
public class Segregater extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 隔离人员id */
    private Long segreId;

    /** 隔离人员姓名 */
    @Excel(name = "隔离人员姓名")
    private String segreName;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private String idCard;

    /** 性别(0男 1女) */
    @Excel(name = "性别(0男 1女)")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private String age;

    /** 部门对象 */
    @Excels({
            @Excel(name = "部门名称", targetAttr = "deptName", type = Excel.Type.EXPORT),
            @Excel(name = "部门负责人", targetAttr = "leader", type = Excel.Type.EXPORT)
    })
    private SysDept dept;

    /** 所属机构id */
    @Excel(name = "所属机构id")
    private Long deptId;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 现居住地址 */
    @Excel(name = "现居住地址")
    private String currentAddress;

    /** 隔离病房id */
    @Excel(name = "隔离病房id")
    private Long wardId;

    /** 隔离病房名 */
    @Excel(name = "隔离病房名")
    private String wardName;

    /** 防疫人员id */
    private Long workerId;

    /** 防疫人员姓名 */
    @Excel(name = "防疫人员姓名")
    private String workerName;

    /** 当日体温情况 */
    @Excel(name = "当日体温情况")
    private String temperature;

    /** 身体健康情况(0健康 1异常) */
    @Excel(name = "身体健康情况(0健康 1异常)")
    private String isHealth;

    /** 每日核酸检测结果(0阴性 1阳性) */
    @Excel(name = "每日核酸检测结果(0阴性 1阳性)")
    private String nucleicResult;

    /** 人员类别(0学生 1教师 2其他) */
    @Excel(name = "人员类别(0学生 1教师 2其他)")
    private String personnelCategory;

    /** 隔离开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "隔离开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date segStartTime;

    /** 隔离结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "隔离结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date segEndTime;

    /** 隔离时间 */
    @Excel(name = "隔离时间")
    private String segTime;

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    private Date createTime;

    public void setSegreId(Long segreId) 
    {
        this.segreId = segreId;
    }

    public Long getSegreId() 
    {
        return segreId;
    }
    public void setSegreName(String segreName) 
    {
        this.segreName = segreName;
    }

    public String getSegreName() 
    {
        return segreName;
    }
    public void setIdCard(String idCard) 
    {
        this.idCard = idCard;
    }

    public String getIdCard() 
    {
        return idCard;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(String age) 
    {
        this.age = age;
    }

    public String getAge() 
    {
        return age;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setCurrentAddress(String currentAddress) 
    {
        this.currentAddress = currentAddress;
    }

    public String getCurrentAddress() 
    {
        return currentAddress;
    }
    public void setWardId(Long wardId) 
    {
        this.wardId = wardId;
    }

    public Long getWardId() 
    {
        return wardId;
    }
    public void setWardName(String wardName) 
    {
        this.wardName = wardName;
    }

    public String getWardName() 
    {
        return wardName;
    }
    public void setWorkerId(Long workerId) 
    {
        this.workerId = workerId;
    }

    public Long getWorkerId() 
    {
        return workerId;
    }
    public void setWorkerName(String workerName) 
    {
        this.workerName = workerName;
    }

    public String getWorkerName() 
    {
        return workerName;
    }
    public void setTemperature(String temperature) 
    {
        this.temperature = temperature;
    }

    public String getTemperature() 
    {
        return temperature;
    }
    public void setIsHealth(String isHealth) 
    {
        this.isHealth = isHealth;
    }

    public String getIsHealth() 
    {
        return isHealth;
    }
    public void setNucleicResult(String nucleicResult) 
    {
        this.nucleicResult = nucleicResult;
    }

    public String getNucleicResult() 
    {
        return nucleicResult;
    }
    public void setPersonnelCategory(String personnelCategory) 
    {
        this.personnelCategory = personnelCategory;
    }

    public String getPersonnelCategory() 
    {
        return personnelCategory;
    }
    public void setSegStartTime(Date segStartTime) 
    {
        this.segStartTime = segStartTime;
    }

    public Date getSegStartTime() 
    {
        return segStartTime;
    }
    public void setSegEndTime(Date segEndTime) 
    {
        this.segEndTime = segEndTime;
    }

    public Date getSegEndTime() 
    {
        return segEndTime;
    }
    public void setSegTime(String segTime) 
    {
        this.segTime = segTime;
    }

    public String getSegTime() 
    {
        return segTime;
    }
    public SysDept getDept()
    {
        return dept;
    }

    public void setDept(SysDept dept)
    {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("segreId", getSegreId())
            .append("segreName", getSegreName())
            .append("idCard", getIdCard())
            .append("sex", getSex())
            .append("age", getAge())
            .append("dept", getDept())
            .append("deptId", getDeptId())
            .append("phone", getPhone())
            .append("currentAddress", getCurrentAddress())
            .append("wardId", getWardId())
            .append("wardName", getWardName())
            .append("workerId", getWorkerId())
            .append("workerName", getWorkerName())
            .append("temperature", getTemperature())
            .append("isHealth", getIsHealth())
            .append("nucleicResult", getNucleicResult())
            .append("personnelCategory", getPersonnelCategory())
            .append("segStartTime", getSegStartTime())
            .append("segEndTime", getSegEndTime())
            .append("segTime", getSegTime())
            .toString();
    }
}
